<template>
	<view class="page">
		
      
        <view style="padding: 25rpx;">
            <view class="ni"  v-for="(m,index) in list" :key='index' @tap="$jump(m.url)">
                <view class="ni_cell">
                    <view>{{m.title}}</view>
                    <uni-icons type="arrowright" style="font-size: 16px; color: #666;display: inline-block;vertical-align: middle;"></uni-icons>
                </view>
            </view>
        </view>
        
	</view>
</template>

<script>
	export default {
		data() {
			return {
		       list:[]
		
			}
		},
        onLoad(opts) {
            
           var list=[];
           if(opts.act=='setting'){
            // list.push({title:'资料设置',url:'mine.profile'});
            // list.push({title:'绑定手机',url:'mine.mobile'});
            list.push({title:'登录密码',url:'mine.password'});
            list.push({title:'修改支付密码',url:'mine.password1'});
            list.push({title:'银行账号',url:'mine.bank'});
            // list.push({title:'SK Hynix账号',url:'mine.bank'});
            // list.push({title:'消息通知设置',url:'mine.note'});   
           }
          else if(opts.act=='team'){
             list.push({title:'我的团队',url:'mine.my_invite'});
             list.push({title:'邀请好友',url:'mine.invite'});
             list.push({title:'手动开户',url:'mine.user_add'}); 
              uni.setNavigationBarTitle({
                  title:'我的下级'
              })
          }
          
            
           this.list=list;
        }
	}
</script>

<style>
.page{
    /* background-color: #e5e5e5; */
    /* min-height: 100vh; */
    
}

.showlines{
        display: flex;
        height: 50px;
        line-height: 50px;
        padding: 10upx;
        flex-direction: row;
        background-color: #fff;
        border-bottom:1px #eee solid;
          
        
    }
    .showlines > view{
       
          flex-direction: row;
          height: 50px;
          line-height: 50px;
    }
  
    .showlines > view:nth-child(1){
        width:calc(100% - 30px);
        text-align: left;
        font-size: 16px;
        color: #000;
        padding-left: 20px;
   
    }
    .showlines > view:nth-child(2){
        width:30px ;
        text-align: center;
    }
      .showlines  image{
          width: 25px;
          height:25px;
          vertical-align: middle;

      }
</style>
